package com.base.self.service;

import com.base.po.voip.Users;
import com.base.result.ResponseResult;
import com.base.self.dto.selfOrder.DeliverOrderDTO;
import com.base.self.dto.selfOrder.SelfOrderExportDTO;
import com.base.self.dto.selfOrder.SelfOrderTotalListDTO;
import com.base.self.dto.selfOrder.SelfOrderWebListDTO;
import com.base.self.entity.SelfOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * 商品订单 服务类
 * </p>
 *
 * @author XiFYuW
 * @since 2020-11-18
 */
public interface ISelfOrderService extends IService<SelfOrder> {

    ResponseResult selfOrderWebList(final SelfOrderWebListDTO selfOrderWebListDTO);

    ResponseResult deliverOrder(final DeliverOrderDTO deliverOrderDTO);

    void selfOrderExport(HttpServletResponse response, final SelfOrderExportDTO selfOrderExportDTO) throws IOException;

    void partakerSuccess(Integer regimentalId/*拼团成功id*/, String orderNo);

    void partakerFailing(Integer regimentalId/*拼团失败id*/, String orderNo);

    String getTotalMoney(Users users);

    ResponseResult selfOrderTotalList(SelfOrderTotalListDTO selfOrderTotalListDTO);

}
